package com.baoyi.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageButton;
import android.widget.LinearLayout;

import com.baoyi.pooke.R;

public class BaoButton extends LinearLayout {

	public BaoButton(Context context) {
		super(context);
		LayoutInflater.from(getContext()).inflate(R.layout.baobutton, this);
		imageButton = (ImageButton) findViewById(R.id.baoimageButton);
	}

	public void setImageResource(int resId) {
		imageButton.setImageResource(resId);
	}

	public void setOnClickListener(OnClickListener l) {
		imageButton.setOnClickListener(l);
	}

	private ImageButton imageButton;
}
